package com.作业.Day8;

import java.util.InputMismatchException;
import java.util.Scanner;

public class Homework1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入1~3:");
        try {
            int i = scanner.nextInt();
            if(i==1)
                System.out.println("C#编程");
            else if (i==2) {
                System.out.println("java编程");
            }
            else if(i==3){
                System.out.println("php编程");
            }
        } catch (InputMismatchException e) {
            System.out.println("输入错误");
        } finally {
            System.out.println("欢迎提出建议");
        }

    }
}
